<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-01-03
 * Time: 16:52
 */

namespace app\api\validate\wx;


use LinCmsTp5\validate\BaseValidate;

class CheckPic extends BaseValidate
{
    protected $rule = [
        'img_id' => 'require|isPositiveInteger',
        'title' => 'require|max:50',
        'summary' => 'max:255',
        'url' => 'max:255'
    ];

    protected $message = [
        'img_id' => '请上传图片',
        'title' => '请添加标题且长度不能超过50',
        'summary' => '简介长度不能超过255',
        'url' => '连接长度不能超过255'
    ];
}